/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jlxy.ise.eroad.service.function;

import java.text.DecimalFormat;
import java.util.Random;

/**
 *
 * @author hcc25_000
 */
public class MockNum {
    public static String getCarNum() {
        String str = "苏A";
        for (int i = 0; i < 4; i++) {
            str += (int) (Math.random() * 10);
        }
        return str;
    }

    public static double getCredit() {
        DecimalFormat dcmFmt = new DecimalFormat("0.0");
        Random rand = new Random();

        double num = rand.nextDouble() * 10;
        return Double.parseDouble(dcmFmt.format(num));
    }
    
    public static int getPrice(){
        int num=(int)(Math.random()*10000);
        return num;
    }
    
    public static String getDel(){
        return "15651023980";
    }
}
